{template header}
<div class="maininfo">

	<div class="lattice x1" style="padding-left: 0;">
		{template userlogin}
		<!--{template gifts_left}-->
	</div>
	
	<div class="lattice x4" style="padding-right: 0;">
		<div class="giftlist">
			<div class="boxcla1">
			
				<div class="hd">
					<div class="r">
						<div class="m"></div>
					</div>
				</div>
				
				<div class="bd" style="padding: 0 10px; overflow:hidden;">
					<div style="float: right;">
						<label>排序</label>
						<select name="orderby" id="orderby" onchange="location.href='gifts-list.htm?orderby='+this.value">
						<option value="">请选择排序...</option>
						<option value="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;按兑换积分从低到高</option>
						<option value="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;按兑换积分从高到低</option>
						</select>
					</div>
					<h3 class="title_cla4">礼品资料</h3>
				</div>
				
				<div class="ft">
					<div class="r">
						<div class="m"></div>
					</div>
				</div>
				
			</div>
			
			<div class="main">
				<ul>
				
					<!--{if $numCount==0}-->还没有礼品信息<!--{/if}-->
					
					<!--{loop $giftsList $list}-->
					<li>
						<div class="pic">
							<center><a href="gifts-detail-{$list[giftsId]}.htm" ><img alt="{$list[title]}" src="{$list[picture]}" /></a></center>
						</div>
						<div class="text">
							<p class="name"><a href="gifts-detail-{$list[giftsId]}.htm" >{$list[title]}</a></p>		
							<p class="status">兑换积分：<span>{$list[credit]}</span></p>
							<!--<p class="status">开始日期：<span>{$list[startDate]}</span></p>-->
							<p class="status">结束日期：<span>{$list[endDate]}</span></p>
							<!--{if $list[inventory] <= 0}-->
							<p class="status">是否缺货：暂时缺货</p>
							<!--{else}-->
							<p class="status">库存：<span class="high">{$list[inventory]}</span></p>
							<!--{/if}-->
						</div>
					</li>
					<!--{/loop}-->	
				</ul>
			</div>
			<div class="boxcla1" >
			
				<div class="hd">
					<div class="r">
						<div class="m"></div>
					</div>
				</div>
				
				<div class="bd" style="overflow:hidden;">
					<div class="pages">
						<div class="scott" style="text-align: center;">
						
							<div id="ctl00_ContentPlaceHolder1_mypager">
							<!--{$multipage}-->
							</div>
												
						</div>
						
					</div>
				</div>
				
				<div class="ft">
					<div class="r">
						<div class="m"></div>
					</div>
				</div>
				
			</div>
		</div>
	</div>
</div>
{template footer}